package com.tongguan.paypos.entity;

import com.google.gson.Gson;

/**
 * Created by Joylive on 2016/12/20 .
 */

public class SettleOrder {


    /**
     * orderId : 920161220210872
     * channelId : XJ
     * payMoney : 0.01
     * payTime : 2016-12-20 11:56:53
     */

    private String orderId;
    private String channelId;
    private double payMoney;
    private String payTime;

    public SettleOrder(String orderId, String channelId, double payMoney, String payTime) {
        this.orderId = orderId;
        this.channelId = channelId;
        this.payMoney = payMoney;
        this.payTime = payTime;
    }

    public static SettleOrder objectFromData(String str) {

        return new Gson().fromJson(str, SettleOrder.class);
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public double getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(double payMoney) {
        this.payMoney = payMoney;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    @Override
    public String toString() {
        return "SettleOrder{" +
                "orderId='" + orderId + '\'' +
                ", channelId='" + channelId + '\'' +
                ", payMoney=" + payMoney +
                ", payTime='" + payTime + '\'' +
                '}';
    }
}
